﻿#pragma once
#include <boost/asio.hpp>
#include <shared_mutex>
#include <string>

#include "DataSaver.h"

class SerialLogger {
private:
    std::string              dev_name;
    boost::asio::io_service  io_service;
    boost::asio::serial_port serial_port;

public:
    virtual ~SerialLogger();
    SerialLogger() = delete;
    SerialLogger(const std::string& dev_name);

    void open(DataSaver* saver);
};
